package hello.app.util;

import android.util.Log;

public class Debug {
	public static final String TAG = "DebugTag";
	public static boolean sEnable = true;

	public static void enable(){
		sEnable = true;
	}

	public static void disable(){
		sEnable = false;
	}

	public static void log(String msg){
		if(sEnable)
			Log.d(TAG, msg);
	}

	public static void error(String msg){
		if(sEnable)
			Log.e(TAG, msg);
	}
}